@import "@styles/theme.scss";

.order-card {
  margin-top: 15px;
  background: #ffffff;
}

.order-header {
  line-height: 42px;
  padding-top: $spacing-h-md;
  padding-bottom: $spacing-h-md;
  padding-right: $spacing-h-lg;
  margin-left: $spacing-h-lg;
  border-bottom: 1px solid $border-color;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  color: $text-color;

  &-no {
    font-size: $font-size-base;
  }

  &-status {
    font-size: $font-size-base;
    color: $primary-color;
  }
}

.order-footer {
  font-size: 28px;
  line-height: 42px;
  padding-top: $spacing-h-md;
  padding-bottom: $spacing-h-md;
  padding-right: $spacing-h-lg;
  margin-left: $spacing-h-lg;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  border-top: 1px solid $border-color;
}

.order-btn {
  margin-left: 15px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  border-radius: 30px;
  padding: 0 20px;
  background: $white;
  border: 1px solid $text-color-light;
  @include eject(border-width, 1PX);
  color: $text-color;

  &--active {
    color: $primary-color;
    border-color: $primary-color;
  }

  &-txt {
    font-size: $font-size-base;
    line-height: 56px;
  }
}

.order-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: $spacing-h-md;
  padding-bottom: $spacing-h-md;
  padding-left: $spacing-h-lg;
  padding-right: $spacing-h-lg;

  &-l {
    display: flex;
    flex-direction: row;
    align-items: center;

    &-img {
      width: 160px;
      height: 160px;
      background: #fafafa;
      border-radius: 4px;
      margin-right: 22px;
    }
  }

  &-r {
    display: flex;
    flex-direction: column;

    &-price {
      color: $text-color;
      font-size: $font-size-base;
    }

    &-num {
      color: $text-color;
      font-size: $font-size-sm;
      text-align: right;
    }
  }

}
